package com.market.inventory.server.mapper;

import com.market.common.core.domain.Result;
import com.market.inventory.server.City;
import com.market.inventory.server.purchase.SamPurchase;
import com.market.inventory.server.vo.VoProductSku;
import com.market.inventory.server.vo.VoPurchase;
import com.market.product.common.domain.ProductInfo;
import com.market.product.common.domain.ProductSkuInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SamInventoryMapper {
    List<ProductInfo> forewarninglist();

    List<ProductSkuInfo> inventoryselect();

    Integer forewarninginsert(Long productId);

    List<ProductSkuInfo> purchaseselect(Integer purchaseDetailsId);

    List<ProductSkuInfo> forewarningdetails(Integer id);


    Integer purchase(@Param("skuId") Integer skuId, @Param("samPurchase") SamPurchase samPurchase);

    ProductSkuInfo PurchasePrice(@Param("skuId") Integer skuId);


    List<SamPurchase> samPurchases();

    Integer updateStatus(VoPurchase voPurchase);

    Integer purchaseUpdate(VoProductSku voProductSku);


    List<City> city(@Param("cityId") Integer cityId);

    Integer statusUpdate(@Param("purchaseId") Integer purchaseId);
}
